package com.ast;

import com.ir.*;
import java.util.List;

public class ConstDefNode {
    String name;
    List<ConstExpNode> constExp;
    ConstInitValNode constIni;
    Expr expr;
    public ConstDefNode(String name, List<ConstExpNode> constExp, ConstInitValNode constIni) {
        this.name = name;
        this.constExp = constExp;
        this.constIni = constIni;
    }

    public String getName() {
        return name;
    }

    public List<ConstExpNode> getConstExp() {
        return constExp;
    }

    public ConstInitValNode getConstIni() {
        return constIni;
    }

    public void setIR(Expr expr){
        this.expr=expr;
    }
}
